//
//  DECXStoreObj.m
//  DECXInStore
//
//  Created by 程强 on 2017/7/24.
//  Copyright © 2017年 程强. All rights reserved.
//

#import "DECXStoreObj.h"

@implementation DECXStoreObj
- (instancetype)initWithResponse:(NSDictionary *)dic
{
    if (self = [super init]) {
        _xid = ValidString(dic[@"id"]);
        _depot_name = ValidString(dic[@"depot_name"]);
        _depot_addr = ValidString(dic[@"depot_addr"]);
        _depotManager = [[DECXUser alloc]initWithResponse:dic[@"user"]];
    }
    return self;
}
@end
